package service.exception;

public class OrderException extends Exception {

    /**
     * 
     */
    private static final long serialVersionUID = 2704538025453822879L;

    public enum CODE {
        UNKNOWN,
        CHECKOUT_AMOUNT_MORE_THAN_LEFT
    }

    private CODE mCODE;

    public OrderException(CODE code) {
        super(code.toString());
        this.mCODE = code;
    }

    public OrderException(Exception e, CODE code) {
        super(e);
        this.mCODE = code;
    }

    public CODE getmCODE() {
        return mCODE;
    }

    public void setmCODE(CODE mCODE) {
        this.mCODE = mCODE;
    }

}
